<?php

/**
 * Inherited Methods
 * @method void wantToTest($text)
 * @method void wantTo($text)
 * @method void execute($callable)
 * @method void expectTo($prediction)
 * @method void expect($prediction)
 * @method void amGoingTo($argumentation)
 * @method void am($role)
 * @method void lookForwardTo($achieveValue)
 * @method void comment($description)
 * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
 *
 * @SuppressWarnings(PHPMD)
*/
class UnitTester extends \Codeception\Actor
{
    use _generated\UnitTesterActions;

    public $uid = 1905378617;
    public $uid2 = 2933619855;

    public function newUser($phone = '') : \StarCloud\Models\User
    {
        empty($phone) && $phone = mt_rand(18000000000, 18999999999);

        return \StarCloud\Models\User::newUser($phone);
    }

    public function getRedis() : Redis
    {
        return \Phalcon\Di::getDefault()->get('redis');
    }

   /**
    * Define custom actions here
    */
}
